﻿@using NakedObjects.Core.Context
@using NakedObjects.Web.Mvc.Html

@{
    ViewBag.Title = "Home Page";
}

<div id="body">
    <section class="main-content" >
        <h2>@(Html.SystemMessages())</h2>
        @Html.UserMessages()
        <br/>
        <p>
            Please note that, by default, the Date Picker for date-input fields uses the UK date format (dd/mm/yy). To change this, see comments in the
            Views > Shared > Site.WithServices.Master
        </p>

        @{ string[] warnings = NakedObjectsContext.InitialisationWarnings; }
        @if (warnings.Any()) {
            <h3>The following warnings were raised during initialisation of Naked Objects: </h3>
            <ul>
                @foreach (string warning in warnings) {
                    <li><b>@(warning)</b></li>
                }
            </ul>
        }
    </section>
</div>